package com.zzyl.nursing.job;

/**
 * @author: zhengsuyang
 * @Desc:
 * @create: 2025-10-11 19:19
 **/

import com.zzyl.nursing.domain.Contract;
import com.zzyl.nursing.service.impl.ContractServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 修改合同状态
 */
@Slf4j
@Component("UpdateContractStatusTask")
public class UpdateContractStatusTask {
    @Autowired
    private ContractServiceImpl contractService;
    public void updateStatus(){
      log.info("执行了");
      contractService.updateContractByTask();
    }
}
